public class Text {

    public static void main(String[] args) {
        Child child = new Child();
        child.show();
    }
}
class Parent {
    void show() {
        System.out.println("父类方法");
    }
}

class Child extends Parent {
    @Override
    void show() {
        super.show(); // 调用父类方法
        System.out.println("子类方法");
    }
}